package strategy.duck;

import strategy.flybehavior.GoodFlyBehavior;
import strategy.quackbehavior.GaGaQuackBehavior;

/**
 * @author: zhouyang
 * @descrpition:
 * @time: 2019-04-28 17:48
 */
public class GreenHeadDuck extends AbstractDuck {
    public GreenHeadDuck(){
        this.flyBehavior = new GoodFlyBehavior();
        this.quackBehavior = new GaGaQuackBehavior();
    }

    @Override
    public void display() {
        System.out.println("**GreenHead**");
    }
}
